import request from '@/utils/request'
// 点位管理区域列表
export function areaList(params) {
  return request({
    url: 'api/vm-service/region/search',
    params
  })
}
// 新增区域
export function Addarea(data) {
  return request({
    url: 'api/vm-service/region',
    method: 'POST',
    data
  })
}
// 查看详情
export function lookup(params) {
  return request({
    url: 'api/vm-service/node/search',
    params
  })
}
// 修改区域
export function reworked(data) {
  return request({
    url: `api/vm-service/region/${data.id}`,
    method: 'PUT',
    data
  })
}
// 删除区域
export function delpost(data) {
  return request({
    url: `api/vm-service/region/${data.id}`,
    method: 'DELETE',
    data
  })
}
// 点位搜索
export function SearchNode(params) {
  return request({
    url: 'api/vm-service/node/search',
    params
  })
}
